package dominio;

public class Calculadora {
	  
	 public double suma(double a, double b) {
	  return a + b;
	 }
	  
	 public double resta(double a, double b) {
	  return a - b;
	 }
	  
	 public double multiplica(double a, double b) {
	  return a * b;
	 }
	  
	 public double divide(double a, double b) { 
	  if(b == 0) {
	   throw new ArithmeticException();
	  }
	  return a / b;
	 }
	  
	}